<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>11.13.上课 dom节点</title>
</head>
<style>
    .yee {
        height: 1000px;
        width: 400px;
        background-color: aqua;
    }

    .fa {
        height: 500px;
        width: 200px;
        background-color: bisque;
    }

    .son {
        height: 200px;
        width: 100px;
        background-color: #124;
    }
</style>

<body>
    <div class="yee">what the shit
        <div class="fa">who fk care
            <div class="son">I dont car
            </div>
        </div>
    </div>
    <div>
        <!-- DOM节点 -->
    </div>
    <script>
        const yee = document.querySelector('.yee');
        const fa = document.querySelector('.fa');
        const son = document.querySelector('.son');

        son.addEventListener('click', function () {
            son.parentNode.parentNode.style.display = 'none';
        });
    </script>
</body>

</html>